/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fsflightplanner;

/**
 *
 * @author Matt
 */
public class Waypoint {

    private String name;
    private String icaoCode;
    private String type;
    private Float longitude;
    private Float latitude;
    private Integer altitude;

    public Waypoint(String name,
            String icaoCode,
            String type,
            Float longitude,
            Float latitude,
            Integer altitude) {

        this.name = name;
        this.icaoCode = icaoCode;
        this.type = type;
        this.longitude = longitude;
        this.latitude = latitude;
        this.altitude = altitude;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setIcaoCode(String icaoCode) {
        this.icaoCode = icaoCode;
    }

    public String getIcaoCode() {
        return icaoCode;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setLongitude(String longitude) {
        this.longitude = Float.valueOf(longitude);
    }

    public Float getLongitude() {
        return longitude;
    }

    public String getLongitudeInDMSFormat() {
        return longitude.toString();
    }

    public void setLatitude(String latitude) {
        this.latitude = Float.valueOf(latitude);
    }

    public Float getLatitude() {
        return latitude;
    }

    public String getLatitudeInDMSFormat() {
        return latitude.toString();
    }

    public void setAltitude(Integer altitude) {
        this.altitude = altitude;
    }

    public Integer getAltitude() {
        return altitude;
    }
}
